<!-- 下单成功 -->
<template>
	<view class="orderSuccess">
		
		<image src="@/static/imgs/success.png" class="successImg"></image>
		
		<view class="tips">您已成功提交订单，请等待工作人员致电</view>
		
		<view class="confirmMain">
			<view class="confirmMainHead flex_sb bdrder_bm">
				<view class="fw_550">订单信息</view>
			</view>
			
			<view class="confirmItem">
				回收品类 <text class="confirmGrey ml_28">{{ orderDetail.type }}</text>
			</view>
			<view class="confirmItem">
				定价方式 <text class="confirmGrey ml_28">{{ orderDetail.order_type }}</text>
			</view>
			<block v-if="orderDetail.order_type == '定价回收'">
				<view class="confirmItem">
					回收产品 <text class="confirmGrey ml_28">{{ orderDetail.type }}投资类  {{ orderDetail.weight }}克  {{ orderDetail.type }}价{{ orderDetail.recycle_price }}</text>
				</view>
				<view class="confirmItem">
					预估价格 <text class="confirmGrey ml_28">{{ orderDetail.predict_price }}元</text>
				</view>
				<view class="confirmItem">
					预付定金 <text class="confirmGrey ml_28">{{ orderDetail.deposit }}元</text>
				</view>
			</block>
			<view class="confirmItem">
				下单时间 <text class="confirmGrey ml_28">{{ orderDetail.add_time }}</text>
			</view>
		</view>
		
		<view class="floorBox">
			<view class="downBtn" @click="toHome">
				返回
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				orderDetail: {}
			}
		},
		onLoad() {
			this.orderDetail = uni.getStorageSync('buyback_confirmOrderDetail')
		},
		methods: {
			toBank(){
				uni.navigateBack({delta:1})
			},
			toHome() {
				uni.setStorageSync('SHOW_ADPOPUP', 1)
				this.$util.JumpPath('/pages/user/index')
			}
		}
	}
</script>

<style lang="scss" scoped>
	.orderSuccess {
		position: relative;
		width: 100%;
		height: 100vh;
		background: #F8F8FA;
		padding-top: 30rpx;
	}
	
	.successImg {
		display: block;
		width: 102rpx;
		height: 102rpx;
		margin: 0 auto 34rpx;
	}
	
	.tips {
		font-size: 28rpx;
		font-weight: 400;
		letter-spacing: 0rpx;
		line-height: 40.54rpx;
		color: rgba(46, 46, 46, 1);
		text-align: center;
		margin: 0 auto 34rpx;
	}
	
	.confirmMain {
		width: 700rpx;
		// height: 587rpx;
		border-radius: 12rpx;
		background: #fff;
		padding: 0 35rpx 26rpx;
		margin: 0 auto;
		overflow: hidden;
		.confirmMainHead {
			margin-top: 28rpx;
		}
		
		.fw_550 {
			font-size: 30rpx;
			font-weight: 550;
			letter-spacing: 0rpx;
			line-height: 43.44rpx;
			color: rgba(48, 48, 48, 1);
			text-align: left;
		}
		.ml_28 {
			margin-left: 66rpx;
		}
		.redTxt {
			font-size: 30rpx;
			font-weight: 500;
			letter-spacing: 0rpx;
			color: rgba(212, 48, 48, 1);
			text-align: right;
		}
		.confirmGrey {
			font-size: 28rpx;
			letter-spacing: 0rpx;
			line-height: 34.75rpx;
			color: rgba(122, 122, 122, 1);
			text-align: center;
		}
		.confirmItem {
			height: 58rpx;
			line-height: 58rpx;
		}
	}
	
	.bdrder_bm {
		padding-bottom: 24rpx;
		margin-bottom: 36rpx;
		border-bottom: 2rpx solid rgba(204, 204, 204, 0.2);
	}
	
	.floorBox {
		position: fixed;
		left: 0;
		bottom: 0;
		width: 750rpx;
		min-height: 161rpx;
		background: #F8F8FA;
		border-top: 1rpx solid rgba(237, 237, 237, 1);
		padding: 0 24rpx 24rpx;
		box-sizing: border-box;
		.downBtn {
			flex: 1;
			height: 100rpx;
			opacity: 1;
			border-radius: 16rpx;
			font-size: 30rpx;
			font-weight: 700;
			line-height: 100rpx;
			color: rgba(64, 63, 63, 1);
			text-align: center;
			background: linear-gradient(134.64deg, rgba(247, 234, 198, 1) 0%, rgba(226, 192, 148, 1) 100%);
		}
		
	}
</style>